<template>
  <div class="hello">
    <h1>spa1</h1>
    <button @click="showSpa2">showSpa2</button>
    <router-view />
    <button @click="go">gotest</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  methods: {
    showSpa2 () {
      this.$router.push({
        name: 'singleChild2'
      })
    },
    go () {
      this.$router.push({
         name: 'test1'
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .hello {
    font-size: 30px;
  }
</style>
